class Token {
  constructor(token_type, value) {
    const d = {
      ":": Type.colon,
      ",": Type.comma,
      "{": Type.braceLeft,
      "}": Type.braceRight,
      "[": Type.bracketLeft,
      "]": Type.bracketRight,
    };

    if (token_type === Type.auto) {
      this.type = d[value];
    } else {
      this.type = token_type;
    }
    this.value = value;
  }

  toString() {
    return `type: ${this.type}, len: ${String(this.value).length}, value: "${
      this.value
    }"`;
  }
}

// 43860 + 23740 + 87806